/*
package com.cy.controller;


import com.cy.pojo.PageBean;
import com.cy.pojo.Show;
import com.cy.service.Showservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
public class BootController {
    @GetMapping("/{id}")
    public String getById(@PathVariable Integer id){
        System.out.println(id);
        return "hello springboot";
    }
    @Autowired
    private Showservice sser;

    @GetMapping("/selectShowPage")
    public PageBean<Show> selectShowPage(String currentPage, String pageSize) {
        int _currentPage = Integer.parseInt(currentPage);
        int _pageSize = Integer.parseInt(pageSize);
        PageBean<Show> showPageBean = sser.selectShowPage(_currentPage, _pageSize);
        return showPageBean;
    }

    @GetMapping("/selectShowNames")
    public PageBean<Show> selectShowNames(String names, String currentPage, String pageSize) {

        //接受参数
        if (names == "") {
            return this.selectShowPage(currentPage, pageSize);
        }else {
            return sser.selectShowNames(names);
        }
    }

    @GetMapping("/selectShowType")

    public PageBean<Show> selectShowType(String type, String currentPage, String pageSize) {
        //接受参数
        if (type.equals("全部")) {
            return this.selectShowPage(currentPage, pageSize);
        }else{
            //调用方法
            return sser.selectShowType(type);
        }
    }




}
*/
